#!/usr/bin/env python3
# coding: utf-8
from conf.configer import *


class DomainRepository:
    def __init__(self):
        self.domain = config().get('domain')
        return

    def get(self, name):
        items = vars(self)
        return items[name]

    def set(self, name, value):
        items = vars(self)
        items[name] = value
        config().set(name, value)
        config().update()

